<div class="modal-header">
    <h4 class="modal-title">分配角色</h4>
</div>
<div class="modal-body">
  <div class="wrapper-md ng-scope">
    <div class="row">
    
      <!-- 第一个候选框 -->
      <div class="col-md-4">
        <div class="panel panel-default">
          <div class="panel-heading font-bold">机构名称:</div>
          <div style="height:280px; overflow:auto">
            <div class="panel-body">
              <treecontrol class="tree-boot" tree-model="dataForTheTree" options="treeOptions"
              on-selection="showSelected(node)" filter-expression="predicate" filter-comparator="comparator"
              selected-node="node1">{{node.name}}</treecontrol>
            </div>
          </div>
        </div>
      </div>
      <!-- 第二个候选框 -->
      <div class="col-md-4">
        <div class="panel panel-default">
          <div class="panel-heading font-bold">用户列表:</div>
          <div style="height:280px; overflow:auto">
            <table class="table table-hover ng-isolate-scope no-footer">
              <tbody>
                <tr ng-repeat="info in user_list">
                  <td ng-dblclick="select($index)"><a href="">{{info.name}}</a></td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
      </div>
      <!-- 第三个候选框 -->
      <div class="col-md-4">
        <div class="panel panel-default">
          <div class="panel-heading font-bold">已选用户:</div>
          <div style="height:280px; overflow:auto">
            <table class="table table-hover ng-isolate-scope no-footer">
              <tbody>
                <tr ng-repeat="info in sel_user_list">
                  <td ng-dblclick="unselect($index)">
                    <a href="" ng-if="info.red == 1" style="color:red">{{info.name}}</a>
                    <a href="" ng-if="info.red != 1">{{info.name}}</a>
                  </td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
      </div>

    </div>
  </div>
</div>
<div class="modal-footer">
    <button class="btn btn-success" type="button" ng-click="ok()">确定</button>
    <button class="btn btn-danger" type="button" ng-click="cancel()">取消</button>
</div>

